package com.wangzhixuan.db.dao;

import com.wangzhixuan.db.bean.Comment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Customer data access
 *
 * @author victor
 */
@Repository
public interface CommentDao {
  
  public Comment getCommentById(@Param("commentId") long commentId);
  
  public List<Comment> getCommentsByOrder(@Param("orderId") long orderId);

  public List<Comment> getCommentsByDoctor(@Param("doctorId") long doctorId);
  
  public long addComment(Comment comment);

}
